package com.example.javabasic.thread.classtwo.threadpermessage.demo2;
//资源释放, 终结线程设计模式
public class Test {
    public static void main(String[] args) {
        CounterIncrement counterIncrement = new CounterIncrement();
        counterIncrement.start();
        try {
            Thread.sleep(3000);
            counterIncrement.close();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

}
